package com.tencent.pojo;

import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
     * 文件块
     * @author 李建
     */
public class Chunk implements Serializable {
        /**
         * 当前文件块，从1开始
         */
        private Integer chunkNumber;
        /**
         * 分块大小
         */
        private Long chunkSize;
        /**
         * 当前分块大小
         */
        private Long currentChunkSize;
        /**
         * 总大小
         */
        private Long totalSize;
        /**
         * 文件标识
         */
        private String identifier;
        /**
         * 文件名
         */
        private String filename;
        /**
         * 相对路径
         */


        private String relativePath;
        /**
         * 总块数
         */
        private Integer totalChunks;

        /**
         * 二进制文件
         */
        private MultipartFile files;


        public Integer getChunkNumber() {
                return chunkNumber;
        }

        public Long getChunkSize() {
                return chunkSize;
        }

        public Long getCurrentChunkSize() {
                return currentChunkSize;
        }

        public Long getTotalSize() {
                return totalSize;
        }

        public String getIdentifier() {
                return identifier;
        }

        public String getFilename() {
                return filename;
        }

        public String getRelativePath() {
                return relativePath;
        }

        public Integer getTotalChunks() {
                return totalChunks;
        }

        public MultipartFile getFiles() {
                return files;
        }

        public void setChunkNumber(Integer chunkNumber) {
                this.chunkNumber = chunkNumber;
        }

        public void setChunkSize(Long chunkSize) {
                this.chunkSize = chunkSize;
        }

        public void setCurrentChunkSize(Long currentChunkSize) {
                this.currentChunkSize = currentChunkSize;
        }

        public void setTotalSize(Long totalSize) {
                this.totalSize = totalSize;
        }

        public void setIdentifier(String identifier) {
                this.identifier = identifier;
        }

        public void setFilename(String filename) {
                this.filename = filename;
        }

        public void setRelativePath(String relativePath) {
                this.relativePath = relativePath;
        }

        public void setTotalChunks(Integer totalChunks) {
                this.totalChunks = totalChunks;
        }

        public void setFiles(MultipartFile files) {
                this.files = files;
        }
}
